package com.cosina.game.robodefence.core;

import java.util.LinkedList;

import com.cosina.game.robodefence.model.Enemy;

public class Wave {
	static LinkedList<Enemy> waveEnemies = new LinkedList<Enemy>();
	
	
	public void add(int kind, int count, int wayIndex){
		for(int i=0; i<count; i++){
			waveEnemies.add(EnemyFactory.create(kind, BattleEngine.field.getWay()[wayIndex]));
		}
	}
	
	public boolean isEmpty(){
		return waveEnemies.isEmpty();
	}
	
	public Enemy getNext(){
		return waveEnemies.poll();
	}
}
